#{extends 'main.html' /}
#{set title:'Register' /}

<font face="Verdana">
<center>
<h1>Registro</h1>
<table>
#{form @saveUser()}

<tr>
#{field 'user.username'}
  <td>Nome do usuário: </td>
  <td><input type="text" name="${field.name}" size="16" value="${user?.username}">
  <span class="error">${field.error}</span></td>
#{/field}
</tr>

<tr>
#{field 'user.name'}
  <td>Nome real: </td>
  <td><input type="text" name="${field.name}" size="16" value="${user?.name}">
  <span class="error">${field.error}</span></td>
#{/field}
</tr>

<tr>
#{field 'user.password'}
  <td>Senha: </td>
  <td><input type="password" name="${field.name}" size="16" value="${user?.password}">
  <span class="error">${field.error}</span></td>
#{/field}
</tr>

<tr>
#{field 'verifyPassword'}
  <td>Verificar senha: </td>
  <td><input type="password" name="${field.name}" size="16" value="${verifyPassword}">
  <span class="error">${field.error}</span></td>

#{/field}
</tr>

<tr align="right">
  <td></td>
  <td><input type="submit" value="Registrar-se"><br/>
  <a href="@{index()}">Cancelar</a></td>
</tr>

#{/form}
</table>
</center>
</font>
